import { RcFile } from 'antd/es/upload';
import { Good, GoodCategory, IMedia } from '../types';
import Goods from './index';
export type EditType = 'create' | 'update';
export interface IOperateGood {
    category: GoodCategory[];
    confirmEdit: (type: EditType, id: string, good: Good, file: RcFile, iconFile: RcFile) => void;
    type: EditType;
}

export interface uploadReturn {
    filename: string;
    id: string;
}

export interface IBannerList {
    desc: string;
    id: string;
    title: string;
    media: IMedia;
}

export interface ICart {
    good: string;
    num: number;
    is_select: boolean;
}
export interface ICartReturn {
    id: string;
    good: Good;
    num: number;
    is_select: boolean;
}
